package com.huatai.bi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huatai.bi.entity.DataSetColumnEntity;
import com.huatai.bi.query.DataSetColumnQuery;
import com.huatai.bi.vo.excelVo.HeardVO;

import java.util.List;

/**
* @author xuzy
*/
public interface DataSetColumnService extends IService<DataSetColumnEntity> {
    List<DataSetColumnEntity> list(DataSetColumnQuery query);

    void batch(List<DataSetColumnEntity> list);

    void insertList(List<DataSetColumnEntity> columnList);

    void redisCache(Long dtId);

	void clearRedisCache(Long dtId);

    /**
     * 根据ID获取字段
     * @param dtId
     * @return
     */
    List<DataSetColumnEntity> columnListById(Long dtId);

    /**
     * 根据ID获取数据项
     * @param dtId
     * @return
     */
    List<HeardVO> heardListById(Long dtId);

    //验证字段
    void validColumn(Long dtId,List<DataSetColumnEntity> columns);

	//原始数据集变更后处理加工后的字段
	void process(Long dtId,List<DataSetColumnEntity> columns);
}
